import React, { Component, Fragment } from 'react'
import './style.css'

export default class AnimationTest extends Component {
  constructor(props) {
    super(props)
    this.state = {
      show: true
    }
  }

  render() {
    return (
      <Fragment>
        <button onClick={() => {this.setState({show: !this.state.show})}}>toggle</button>
        <div className={this.state.show ? 'show' : 'hide'}>show/hide</div>
      </Fragment>
    )
  }
}
